#ifndef WIFI_SMARTCONFIG_H
#define WIFI_SMARTCONFIG_H

// ... 头文件的内容 ...


#include "protothreads.h"
#include <WiFi.h>



extern void network_init();
extern void network_precess();
extern int AutoConfig(struct pt *pt);
extern int SmartConfig(struct pt *pt);
extern int socketLink(struct pt *pt);
extern void reset_wifi();
extern void get_mac_address();
extern void sendData(uint8_t *data, uint16_t length);
extern void readResponse();
extern unsigned short luckin_calcrc(unsigned char *ptr, short int count);
extern void sendHeartbeat();
extern void sendRunResult();

#endif

